//
//  BaseReponse.swift
//  CandyDate
//
//  Created by zolobdz on 2017/10/16.
//  Copyright © 2017年 HeChao. All rights reserved.
//

import Foundation
import ObjectMapper

struct BaseResponse: Mappable {

    var code: Int = 11
    var message: String = "未知错误"
    var data: Dictionary<String,Any> = [:]


    init?(map: Map) {

    }

    mutating func mapping(map: Map) {
        code <- map["rc"]
        message <- map["msg"]
        data <- map["data"]
    }

}

